package com.wltjack.sysmanage.modules.demo1.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wltjack.sysmanage.common.util.SnowFlakeUtil;

@TableName("dept1")
public class Dept {

    @TableId("id")
    private String id = SnowFlakeUtil.nextId().toString();

    @TableField("name")
    private String name;

    @TableField(value = "dbsource", fill = FieldFill.INSERT)
    private String dbsource;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDbsource() {
        return dbsource;
    }

    public void setDbsource(String dbsource) {
        this.dbsource = dbsource;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", dbsource='" + dbsource + '\'' +
                '}';
    }
}
